<body>
    <div id="app">
        {{name}}
        <p>{{name}}</p>
        <p v-text="name"></p>
        <p>{{age}}</p>
        <input type="text" v-model="name">
        <button @click="changeName">点我</button>
        <div v-html="html"></div>
    </div>
    <script src="./index.js"></script>
    <script src="./compile.js"></script>
    <script>
        const vm = new Vue({
            el: '#app',
            data: {
                name: "test vue",
                age: 12,
                html: '<button>这是一个按钮</button>'
            },
            methods: {
                changeName() {
                    this.name = '哈喽，我来了'
                    this.age = 1
                }
            }
        })

    </script>
</body>